<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\agent\model;

class Cardauth2DefaultModel extends \app\BaseModel
{
    protected $name = "longbing_cardauth2_default";
    public function getinfo()
    {
        $data = $this->order("id", "desc")->select()->toArray();
        if($data) {
            $data = $data[0];
        }
        return $data;
    }
    public function is_table()
    {
        $prefix = config("database.connections.mysql.prefix");
        $table = $prefix . $this->name;
        $res = \think\facade\Db::query("SHOW TABLES LIKE '" . $table . "'");
        return $res;
    }
    public function getDefaultValue($key, $defualt = -1)
    {
        $defaultConfig = $this->getinfo();
        $number = isset($defaultConfig[$key]) ? $defaultConfig[$key] : $defualt;
        return $number;
    }
    public function getCardNumber()
    {
        return $this->getDefaultValue("card_number");
    }
    public function getSendMsg()
    {
        return $this->getDefaultValue("send_switch", 0);
    }
}

?>